<style type="text/css">
    .bg {
        background: #fff;
        padding-top: 48px;
        padding-bottom: 10px;
    }
    .banner img{
        width: 100%;
    }
    .jifen_nav{
        margin: 4px 0;
    }
    .jifen_nav a{
        width: 100%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 12.8px;
        color: #666;
        background: #eeeeee;
        position: relative;
    }
    .jifen_nav a+a{
        border-left: 1px solid #fff;
    }
    .jifen_nav a.active{
        background: #51606f;
        color: #fff;
    }
    .jifen_nav a.active:after {
        content: "";
        position: absolute;
        border: 8px solid transparent;
        border-top: 8px solid #51606f;
        bottom: -16px;
        left: 50%;
        margin-left: -4px;
    }
    .product_list{
        padding: 12px;
    }
    .product_list li{
        float: left;
        width: calc((100% - 16px) / 3);
        margin-left: 8px;
        margin-bottom: 8px;
        background: #fff;
        border: 1px solid #efefef;
        padding-bottom: 6px;
    }
    .product_list li:nth-child(3n + 1){
        margin-left: 0;
    }
    .product_list li img{
        width: 100%;
        height: 100px;
    }
    .pro_name{
        font-size: 16px;
        color: #333;
        line-height: 38px;
        height: 38px;
        padding-left: 6px;
    }
    .pro_price,.pro_ji{
        font-size: 12.6px;
        color: red;
        padding-left: 6px;
        line-height: 20px;
    }
</style>



<div class="pro_header">
    <a href="javascript:history.go(-1)" class="return_btn"></a>
    <?= $this->title ?>
    <a href="<?= url(['site/index']) ?>" class="to_home_btn"></a>
</div>


<div class="banner">
    <img src="/images/jifendangqianhua.png">
</div>

<p class="flex-nowrap jifen_nav"> 
    <a class="active" href="">代销专区</a>
    <a href="">换购专区</a>
    <a href="<?= url(['site/index']) ?>">游戏专区</a>
</p>

<ul class="product_list clear_fl">
    <?php foreach ($goods as $vo): ?>
    <li>
        <a href="<?= url(['site/sellGoodsDetail', 'id' => $vo->goods_id]) ?>">
            <img src="<?= $vo->img ?>">
            <p class="pro_name"><?= $vo->goods_name ?></p>
            <p class="pro_price">价格 ￥<?= $vo->amount ?></p>
            <p class="pro_ji">消耗能源分 <?= $vo->score ?></p>
        </a>
    </li>
    <?php endforeach ?>
</ul>


